package com.qf.springboot4.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class MyAdvice {

    @Pointcut("execution(* com.qf.springboot4.service..*.find*(..))")
    public void pt(){}

    @Before("pt()")
    public void before(){
        System.out.println("缓存处理");
    }
}
